import instance from "@/utils/http.js";


export const getDetail = (id) => {
    return instance({
        url:'/goods',
        params:{
            id
        }
    })
}

export const getHotGoodAPI = ({id ,type,limit = 3}) => {
    return instance({
        url:'/goods/hot',
        params:{
            id,
            type,
            limit
        }
    })
}